package com.neutech.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PdrugMapper {
    //根据患者姓名查询
    public List<Map<String ,Object>> queryPdrugByName(String name);
    public List<Map<String ,Object>> queryPdrugByIdnumber(Integer idnumber);
    public List<Map<String ,Object>> queryPdrugByState(String state);
    //根据患者姓名更新患者药品信息
    public void updatePdrugByName(Map<String,Object> map);
   public void updatePdrugByIdnumber(Map<String,Object> map);
    public Integer addPdrug(Map<String,Object> map);
    public void delpdrug(Integer num);
}
